package com.enzoism.springboot.dive.controller;

import com.enzoism.springboot.dive.service.MyTransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TxController {
    @Autowired
    MyTransactionService myTransactionService;


    @GetMapping("insert")
    public String insertTx(){
        myTransactionService.saveTest(1);
        return "插入数据成功！";
    }
}
